package com.acctrue.common.core.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author: jsc
 * @createTime: 2023-11-22 18:50
 * @version: 1.0.0
 * @Description: 返回枚举类
 */
@Getter
@AllArgsConstructor
public enum ResultTypeEnum {

    SUCCESS(200, "请求处理成功!"),

    UN_AUTHORIZED(401, "未授权"),
    NOT_FOUND(404, "无法找到资源"),
    NOT_ALLOWED(405, "禁止请求该资源"),
    PARAMS_NOT_NULL(406, "参数缺失，请检查参数！"),
    PARAMS_NOT_VALID(407, "参数校验失败，请检查参数！"),
    VALID_ERROR(407, "参数校验失败，请检查参数！"),
    OPERATION_TYPE_ERROR(408, "操作类型错误"),

    TOKEN_IS_NULL(10001, "token 不能为空"),
    TOKEN_INVALID(10002, "token 已失效"),
    TOKEN_BLACKLIST(10003, "token 已被加入黑名单"),
    USER_STATE_DISABLE(10004, "用户已被禁用，请联系管理员"),
    USER_STATE_DELETE(10005, "用户已被删除，请联系管理员"),


    FAIL(9001, "请求处理失败!");

    private Integer code;
    private String msg;

}
